/*
 * player.h
 *
 *  Created on: Nov 23, 2008
 *      Author: cnsnyldz
 */

#ifndef PLAYER_H_
#define PLAYER_H_
#include "elements/island.h"
#include "elements/port.h"
#include "elements/battleship.h"

#define BATTLESHIP 0
#define MINE 1
#define MISSILE 2
#define TRADESHIP 3


using namespace std;

class Player {
private:
	int currentIsland;
	int currentShip;
	int currentWeapon;
	vector<int> islandIds;
	Port port;
	vector<BattleShip> ships;
public:
	void setPort(Port _port){port=_port;};

	void pushBattleShip(BattleShip ship);

	void setCurrents();

	bool isStatic();

	pair<float,float> getCurrentShipsPosition();
	float getCurrentShipsOrientation();
	void selectNextShip();
	void setCurrentShip(int shipId);
	void moveCurrentShip(int mode);
	void calculateCurrentShipsPosition();

	void draw(int myTurn,float seaLevel,int mode,int isDay);
	void drawInfo(float x,int id);
};

#endif /* PLAYER_H_ */
